package com.airplane.hotdiscuss.util;

public class Utils {
    private static final MyLogger logger = MyLogger.getLogger(Utils.class.getSimpleName());

    // Transaction id
    private static int mTransId = 0;

    public static int getTransactionId() {
        if (mTransId < Integer.MAX_VALUE) {
            ++mTransId;
        } else {
            mTransId = 0;
        }
        logger.d("getTransactionId(), mTransId: " + mTransId);
        return mTransId;
    }
}
